<layout name='Layout/layout_main' />
<tagLib name="html" />
<script type="text/javascript">
	$(document).ready(function() {
		set_return_url();
	}); 
</script>
<div class="doc">
	<form id="form_search" method='post' >
		<div class="row-fluid title">
			<span>文档搜索</span>
			<div class="input-append right">
				<input type="text"  onkeydown="key_search();" name="keyword" id="keyword">
				<a class="btn" type="button" onclick="btn_search();"> <i class="icon-search"></i>
				</a>
				<a class="btn" onclick="open_search();"> <i class="icon-angle-down"></i>
				</a>
			</div>
		</div>
		<div class="row-fluid adv_search">
			<div class="row-fluid adv_search_head">
				<h4 class="left">高级搜索</h4>
				<div class="right text-right">
					<a  class="btn" onclick="adv_search();">搜索</a>
					<a  class="btn" onclick="close_search();">关闭</a>
				</div>
			</div>
			<div class="row-fluid form-horizontal">
				<div class="control-group span6">
					<label class="control-label" for="name">文件名 ：</label>
					<div class="controls">
						<input type="text" id="name" name="name"></div>
				</div>
				<div class="control-group span6">
					<label class="control-label" for="content">内容：</label>
					<div class="controls">
						<input type="text" id="content" name="content" ></div>
				</div>
			</div>
			<div class="row-fluid form-horizontal">
				<div class="control-group span6">
					<label class="control-label" for="user_name">登录人：</label>
					<div class="controls">
						<input type="text" id="user_name" name="user_name"></div>
				</div>
				<div class="control-group span6">
					<label class="control-label" for="start_date">登录时间：</label>
					<div class="controls">
						<input  type="text" name="start_date" id="start_date" class="input-date" value="{$search['start_date']}"  readonly="readonly">
						&nbsp;~&nbsp;
						<input type="text" name="end_date" id="end_date" value="{$search['end_date']}" readonly="readonly" class="input-date" ></div>
				</div>
			</div>
		</div>
	</form>
	<form method="post" action="" id="form_data">
	<div class="table">
		<ul>
			<li class="thead">
				<span class="col2">编号</span>
				<span class="col3">文件夹</span>
				<span class="col5 right">登录时间</span>
				<span class="col4 right">登录人</span>
				<div class="auto autocut">文件名</div>
			</li>
			<if condition="count($list) eq 0 ">
				<li class="tbody text-center">
					<h3>没找到相应的数据</h3>
				</li>
			</ul>
		</div>
	</form>
		<else/>
		<foreach name="list" item="vo">
			<li class="tbody">
				<span class="col2 text-center">{$vo.doc_no}</span>
				<span class="col3 text-center autocut">&nbsp;{$vo.folder_name}&nbsp;</span>
				<span class="col5 right text-center">&nbsp;{$vo.create_time|toDate='Y-m-d'}&nbsp;</span>
				<span class="col4 right text-center">{$vo.user_name}</span>
				<div class="auto autocut">
					<a href="{:U('read?id='.$vo['id'])}">
						{$vo.name}
						<eq name="vo.name|strlen" value="0">无标题</eq>
					</a>
				</div>
			</li>
			</foreach>
			</ul>
		</div>
	</form>
	<div class="page">{$page}</div>
</if>
</div>